import config from "@/config"
import http from "@/utils/request"
import {getLogAdd} from "@/api/model/log";

// export default {
// 	getMbfqdwfrzs: {
// 		url: `${config.API_JKDY_MZB}/engine/rest/mbfqdwfrzs`,
// 		name: "民政部_民办非企业单位登记证书查询",
// 		post: async function (data = {}) {
// 			return await http.post(this.url, data);
// 		}
// 	}
// }
const type = 15;

export const getMbfqdwfrzs = (data) => {
	getLogAdd({content: "民政部_民办非企业单位登记证书查询", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/mbfqdwfrzs`, data).catch((err) => {
		console.log(err)
	});
}
//民政部_民办非企业名称变更登记记录查询
export const getMbfqdwmcbgxx = (data) => {
	getLogAdd({content: "民政部_民办非企业名称变更登记记录查询", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/mbfqdwmcbgxx`, data).catch((err) => {
		console.log(err)
	});
}
//民政部_婚姻登记信息核验(个人)
export const getGrhydjxxhy = (data) => {
	getLogAdd({content: "民政部_婚姻登记信息核验(个人)", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/checkMarryBySingle`, data).catch((err) => {
		console.log(err)
	});
}
//民政部_婚姻登记信息核验(双方)
export const getSrhydjxxhy = (data) => {
	getLogAdd({content: "民政部_婚姻登记信息核验(双方)", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/checkMarryByCouple`, data).catch((err) => {
		console.log(err)
	});
}
//民政部_社会团体法人登记证书查询
export const getShttfrzsxx = (data) => {
	getLogAdd({content: "民政部_社会团体法人登记证书查询", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/shttfrzsxx`, data).catch((err) => {
		console.log(err)
	});
}
//民政部_社会团体名称变更登记记录查询
export const getShttmcbgxx = (data) => {
	getLogAdd({content: "民政部_社会团体名称变更登记记录查询", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/shttmcbgxx`, data).catch((err) => {
		console.log(err)
	});
}
//民政部_社会组织信息查询服务接口
export const getShzzxx = (data) => {
	getLogAdd({content: "民政部_社会组织信息查询服务接口", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/shzzxx`, data).catch((err) => {
		console.log(err)
	});
}
//涉外婚姻登记信息查询服务接口
export const queryMarryWithForeginForSingle = (data) => {
	getLogAdd({content: "涉外婚姻登记信息查询服务接口", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/queryMarryWithForeginForSingle`, data).catch((err) => {
		console.log(err)
	});
}
//民政部_涉外婚姻登记信息核验（个人）
export const checkForeignMarryForSingle = (data) => {
	getLogAdd({content: "民政部_涉外婚姻登记信息核验（个人）", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/checkForeignMarryForSingle`, data).catch((err) => {
		console.log(err)
	});
}
//民政部_涉外婚姻登记信息核验（双方）
export const checkForeignMarryForCouple = (data) => {
	getLogAdd({content: "民政部_涉外婚姻登记信息核验（双方）", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/checkForeignMarryForCouple`, data).catch((err) => {
		console.log(err)
	});
}
//收养登记证信息查询
export const sydjzxx = (data) => {
	getLogAdd({content: "收养登记证信息查询", type: type});
	return http.post(`${config.API_JKDY_MZB}/engine/rest/sydjzxx`, data).catch((err) => {
		console.log(err)
	});
}
//
export const bzfwhhxxxx = (data) => {
	return http.post(`${config.API_JKDY_MZB}/engine/rest/bzfwhhxxcx`, data).catch((err) => {
		console.log(err)
	});
}
// 民政部_殡葬服务火化信息查询
export const szfwhhxxcx = (data) => {
	getLogAdd({content: "民政部_殡葬服务火化信息查询", type: type});
	return http.post(`${config.API_SYS_BASE}/provincial/api/mzb/szfwhhxxcx`, data).catch((err) => {
		console.log(err)
	});
}
// 工信部_产融对接
export const crdj = (data) => {
	getLogAdd({content: "工信部_产融对接", type: type});
	return http.post(`${config.API_SYS_BASE}/provincial/api/gxb/crdj`, data).catch((err) => {
		console.log(err)
	});
}
// 工信部_产融对接情况
export const crdjqk = (data) => {
	getLogAdd({content: "工信部_产融对接情况", type: type});
	return http.post(`${config.API_SYS_BASE}/provincial/api/gxb/crdjqk`, data).catch((err) => {
		console.log(err)
	});
}
